package main

import (
	"bufio"
	"fmt"
	"os"
)

func main() {
	file, error := os.OpenFile("./1.txt", os.O_CREATE|os.O_RDWR|os.O_APPEND, 0666)
	if error != nil {
		fmt.Printf("打开文件出错！", error)
	}
	defer file.Close()

	wr := bufio.NewWriter(file)
	wr.WriteString("1233333dfdfdfdf")
	wr.Flush()
}
